package cn.bugstack.springframework.beans.factory;

import cn.bugstack.springframework.BeanException;

/**
 * description: bean工厂
 * taskId：
 * <pre>
 * change history:
 * date             defect#             person                comments
 * ---------------------------------------------------------------------
 * 2024/12/31       ********         zhaochaoyue        create file
 * </pre>
 *
 * @author: zhaochaoyue
 * @date: 2024/12/31 15:07
 * @copyright: 2024
 */
public interface BeanFactory {

    /**
     * 通过bean名称获取bean
     * @param name 名称
     * @return
     * @throws BeanException
     */
    Object getBean(String name) throws BeanException;

    /**
     * 接收参数
     * @param name
     * @param args
     * @return
     * @throws BeanException
     */
    Object getBean(String name,Object... args) throws BeanException;
}
